#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int* twoSum(int* nums, int numsSize, int target, int* returnSize) {
    *returnSize = 2;
    int* ret = (int*)malloc(sizeof(int) * *returnSize);
    int prev = 0, tail = -1;
    for (int i = 0; i < numsSize; i++)
    {
        for (int j = 0; j < numsSize; j++)
        {
            if (nums[i] + nums[j] == target && i != j)
            {
                ret[0] = i;
                ret[1] = j;
            }
        }
    }
    return ret;
}

int main()
{
    int arr[] = { 3,3 };
    twoSum(arr, 2, 6, 2);
	return 0;
}